package cn.bdqn.petadoptions.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author luowei
 * @since 2021-08-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Books对象", description="")
public class Books implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "图书编号")
    @TableId(value = "bookId", type = IdType.AUTO)
    private Integer bookId;

    @ApiModelProperty(value = "书名")
    @TableField("bookName")
    private String bookName;

    @ApiModelProperty(value = "作者")
    @TableField("bookAuthor")
    private String bookAuthor;

    @ApiModelProperty(value = "出版社")
    @TableField("bookPublish")
    private String bookPublish;

    @ApiModelProperty(value = "页数")
    @TableField("bookPage")
    private Integer bookPage;

    @ApiModelProperty(value = "价格")
    @TableField("bookPrice")
    private Double bookPrice;

    @ApiModelProperty(value = "添加日期")
    @TableField("createDate")
    private LocalDate createDate;


}
